package com.cskaoyan.config;

import com.cskaoyan.bean.User;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;
import java.util.Map;

/**
 * @author stone
 * @date 2022/01/04 17:21
 */
@Data
@ConfigurationProperties(prefix = "custom")
public class CustomProperties {
    String username;  //字符串
    int age;          //基本类型
    Boolean flag;     //包装

    List list1;
    List list2;
    String[] array1;
    String[] array2;

    Map map1;
    Map map2;
    User user1;
    User user2;
}
